#include "field.h"
#include "entry.h"

Field::Field(const QString &name, Entry *entry)
{
	myOwner = entry;
	myName = name;

	pk = false;
	myAutoIncrement = false;
	myType = Field::Int;
	myNull = false;

	fk = false;
	reference = 0;
}

void Field::setOwner(Entry *entry)
{
	myOwner = entry;
}

Entry *Field::owner() const
{
	return myOwner;
}

void Field::setName(const QString &name)
{
	myName = name;
}

QString Field::name() const
{
	return myName;
}